import request from '@/utils/request'

// 账号密码登录
export function userLogin(data) {
    return request({
        url: '/user/login',
        method: 'post',
        data
    })
}

// 手机密码登录
export function pLogin(data) {
    return request({
        url: '/user/login',
        method: 'post',
        data
    })
}

// 用户密码重置
export function resetPassword(data) {
    return request({
        url: '/user/resetPassword',
        method: 'post',
        data
    })
}

//验证身份
export function checkIdNum(data) {
    return request({
        url: '/user/checkIdNum',
        method: 'post',
        data
    })
}